#ifndef UPPERSETNETPARAMCMD_H
#define UPPERSETNETPARAMCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class UpperSetNetParamCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::UpperSetNetParam};

    Q_INVOKABLE explicit UpperSetNetParamCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint8 mode() const;
    void setMode(const quint8 &mode);

    QString ip() const;
    void setIp(const QString &ip);

    QString mask() const;
    void setMask(const QString &mask);

    QString gateway() const;
    void setGateway(const QString &gateway);

private:
    quint8  m_mode;
    QString m_ip;
    QString m_mask;
    QString m_gateway;

};

#endif // UPPERSETNETPARAMCMD_H
